home *** CD-ROM | disk | FTP | other *** search
- Path: in2.uu.net!demos!usenet
- From: Alexey Ruzin <00alex@dbs.demos.su>
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: Please don't shoot me (newbie question)
- Date: Wed, 17 Apr 1996 16:51:48 +0400
- Organization: Demos Online Service
- Message-ID: <3174E964.3D2B@dbs.demos.su>
- References: <4l0puc$oa9@interport.net>
- NNTP-Posting-Host: 00alex@dbs.demos.su
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
-
- Tom Metzger wrote:
- >
- > I just started lurking here, so please don't shoot me if this has been asked
- > a hundred times before, but....
- >
- > Can someone explain to me, in clear terms, what the difference is between
- > C and C++ ? Everytime I've asked someone, the answer is so cryptic, it's
- > not funny.
- >
- > Thanks in advance,
- > Tom
-
- Hi, Tom
-
- I don't think that i can clearly explain difference between C & C++, but
- I hope I can show some advantages of C++.
-
- 1. C++ inherit C (practically all is written on C will be compiled
- with C++ compiler)
- 2. C is procedural language, other side C++ is object oriented
- 2.a) You specify data with methods (functions) operating with it data
- 2.b) You can use inheritance of objects (so Manager is derived
- from Employee)
- 2.c) and so on...
- 3. More powerfull syntax (such as templates) let you spend less time
- on coding like objects and functions
- 4. 'EXCEPTIONS'!!!??? - it is better somebody else to explain
- 5. and few other less significant (i think) differences
-
- P.S.
- What is hard to do with C -> do with C++ :)
-
- Not so far I think I know something about C & C++ :)
-